//
//  UserInfoRequest.m
//  HONGQIYUN
//
//  Created by 余海华 on 2016/12/23.
//  Copyright © 2016年 Haidi. All rights reserved.
//

#import "UserInfoRequest.h"

@implementation UserInfoRequest {
    
    NSString *_userName;
}
-(id) initRequestWithUserName:(NSString *) userName {
    
    if (self = [super init]) {
        
        _userName = userName;
    }
    return self;
    
}
-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

-(NSString *)requestUrl
{
    return @"/tools/getdata.ashx?types=get_user_info";
}

-(id)requestArgument
{
    return @{
             @"username": [_userName length]?_userName:@""
             };
}
@end
